import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    usersnum:0,
    newsnum:0,
  },
  getters: {
  },
  mutations: {
    getUsersNum(state,num){
      state.usersnum=num
    },
    getNewsNum(state,num){
      state.newsnum=num
    }
  },
  actions: {
  },
  modules: {
  }
})
